﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpDX.Direct3D9;
using SharpDX;

namespace Omega.Game.Framework.Direct3D
{


    public enum PrimitiveType : int
    {
        Cube,
        Cilinder,
        Sphere,
        Plane
    }
    static class Primitives
    {
        static Model3D Create(PrimitiveType type)
        {
            switch (type)
            {
                case PrimitiveType.Cube:
                    return Cube();
                case PrimitiveType.Cilinder:
                    return Cilinder();
                case PrimitiveType.Sphere:
                    return Sphere();
                case PrimitiveType.Plane:
                    return Plane();
                default:
                    break;
            }

            return null;
        }


        static Model3D Cube()
        {
            Model3D tempModel = new Model3D();

            tempModel.Vertices = new SharpDX.Direct3D9.VertexBuffer(
                Graphics.device, Utilities.SizeOf<Vector3>() * 36,
                Usage.None, VertexFormat.Position, Pool.Default);
            
            

            return tempModel;
        }
        static Model3D Sphere()
        {
            return null;
        }
        static Model3D Plane()
        {
            return null;
        }
        static Model3D Cilinder()
        {
            return null;
        }


    }
}
